import request from '@/utils/request'

// 查询学校列表
export function listSchoolInfo(query) {
  return request({
    url: '/school/schoolInfo/list',
    method: 'get',
    params: query
  })
}

// 查询学校详细
export function getSchoolInfo(id) {
  return request({
    url: '/school/schoolInfo/' + id,
    method: 'get'
  })
}

// 新增学校
export function addSchoolInfo(data) {
  return request({
    url: '/school/schoolInfo/add',
    method: 'post',
    data: data
  })
}

// 修改学校
export function updateSchoolInfo(data) {
  return request({
    url: '/school/schoolInfo/edit',
    method: 'put',
    data: data
  })
}

// 删除学校
export function delSchoolInfo(id) {
  return request({
    url: '/school/schoolInfo/remove/' + id,
    method: 'delete'
  })
}

// 导出学校
export function exportSchoolInfo(query) {
  return request({
    url: '/school/schoolInfo/export',
    method: 'get',
    params: query
  })
}
